package org.madgecko.basic.model;

public class ExtReturn {

    private boolean success;
    private Object data;
    private String msg;
    private Object o;

	public ExtReturn() {
	}

	public ExtReturn(boolean success) {
		this.success = success;
	}

    public ExtReturn(boolean success, Object data) {
		this.success = success;
		this.data = data;
		this.o = "";
	}

	public ExtReturn(boolean success, Object data, String msg) {
		this.success = success;
        this.data = data;
		this.msg = msg;
		this.o="";
	}

	public ExtReturn(boolean success, Object data, String msg, Object o) {
		this.success = success;
        this.data = data;
		this.msg = msg;
		this.o = o;
	}

	public ExtReturn(String errormsg) {
		this.success = false;
		this.msg = errormsg;
		this.o = "";
	}

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getO() {
        return o;
    }

    public void setO(Object o) {
        this.o = o;
    }
}
